package com.htht.smartschool.util.cmpp;

import java.util.HashMap;
import java.util.Map;

import com.htht.smartschool.util.http.HttpUtil;
import com.htht.smartschool.util.system.GsonUtils;

public class BalanceUtil {
	public static void main(String[] args) {
		Map<String, String> params = new HashMap<String, String>();
		params.put("SERIAL_NUMBER", "13802236407");
		try {
			String result = HttpUtil.getInstance().doPost("", params);
			if(result != null && result.length() > 0){
				BalanceData bd = (BalanceData) GsonUtils.getInstance().fromJson(result, BalanceData.class);
				System.out.println(bd.getALL_BALANCE());
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
